/**
 * @file bsp_timer.c
 * @brief Timer driver implementation for H743-V2
 */

#include "bsp_timer.h"
#include "FreeRTOS.h"
#include "task.h"

int BSP_Timer_Init(void)
{
    // TODO: Initialize high-resolution timer (TIM2)
    return 0;
}

uint64_t BSP_Timer_GetMicros(void)
{
    // TODO: Return microseconds from TIM2
    return xTaskGetTickCount() * 1000;
}

uint32_t BSP_Timer_GetMillis(void)
{
    return xTaskGetTickCount();
}

